import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { EGuildWarehouseOper } from "./EGuildWarehouseOper";
type int = number;
//class SGuildWarehouseRecord
    
    export  class SGuildWarehouseRecord
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeString(this.assignName);
            arg1.writeString(this.name);
            arg1.writeInt(this.itemCode);
            arg1.writeInt(this.unit);
            arg1.writeInt(this.amount);
            this.oper.__write(arg1);
            arg1.writeDate(this.operDt);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.assignName = arg1.readString();
            this.name = arg1.readString();
            this.itemCode = arg1.readInt();
            this.unit = arg1.readInt();
            this.amount = arg1.readInt();
            this.oper = EGuildWarehouseOper.__read(arg1);
            this.operDt = arg1.readDate();
            return;
        }

        public /* var */assignName: string;

        public /* var */name: string;

        public /* var */itemCode: int;

        public /* var */unit: int;

        public /* var */amount: int;

        public /* var */oper: EGuildWarehouseOper;

        public /* var */operDt: Date;
    }
